# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
  def flash_helper
    [:success, :warning, :error].map { |type| content_tag(:p, flash[type], :class => "message #{type}") if flash[type] }
  end
  
end
